<?php
/**
 * Created by PhpStorm.
 * User: gaochaolyf
 * Date: 16/5/23
 * Time: 下午3:02
 */

namespace api\Model;

use Think\Model;

class CateEntityModel extends Model
{
    function __construct() {
        $this->model = M('CateEntity');
    }

    public function CateEntity($field = array('parent_id','cate_name','cate_id'), $condition = array('is_delete'=>0,'son_id'=>0)) {
        $data = $this->model->where($condition)->field($field)->select();
        return $data;
    }

}